package com.xxl.job.core.biz;

import com.xxl.job.core.biz.model.HandleCallbackParam;
import com.xxl.job.core.biz.model.RegistryParam;
import com.xxl.job.core.biz.model.ReturnT;

import java.util.List;


/**
 * @author xuxueli 2017-07-27 21:52:49
 */
public interface AdminBiz {


    // ---------------------- callback ----------------------

    /**
     * 将定时任务执行的结果回调保存到数据库中
     * callback
     *
     * @param callbackParamList 回调参数列表
     * @return {@link ReturnT}<{@link String}>
     */
    public ReturnT<String> callback(List<HandleCallbackParam> callbackParamList);


    // ---------------------- registry ----------------------

    /**
     * 注册执行器
     * registry
     *
     * @param registryParam 注册表参数
     * @return {@link ReturnT}<{@link String}>
     */
    public ReturnT<String> registry(RegistryParam registryParam);

    /**
     * 删除执行器
     * registry remove
     *
     * @param registryParam 注册表参数
     * @return {@link ReturnT}<{@link String}>
     */
    public ReturnT<String> registryRemove(RegistryParam registryParam);


    // ---------------------- biz (custome) ----------------------
    // group、job ... manage

}
